package com.JZ.QM.service;

import com.JZ.QM.common.entity.PositionDetailEntity;
import com.JZ.QM.common.entity.WealthAccountEntity;
import com.JZ.QM.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.Map;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/11 23:03
 */
public interface WealthAccountService extends IService<WealthAccountEntity> {
    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 获取持仓详细信息
     * @param accountId 平台账号id
     * @return
     */
    ArrayList<PositionDetailEntity> getPositionDetailList(Long accountId,Long wealthAccountId);

    /**
     *  获取用户的累积持仓信息
     * @param userId 用户id
     * @return
     */
    PositionDetailEntity getTotalPositionDetail(Long userId,Long accountId);
}
